/**
 * Copyright(c): 2017 com.mjduan All rights reserved.
 * 项目名：learn-spring-web
 * 注意：未经作者允许，不得外传
 */
package com.mjduan.project.util.redis.subscribe;

/**
 * @author mjduan@yahoo.com mjduan 2018-06-24 14:42
 * @version 1.0
 * @since 1.0
 */
public class CustomMessage {
    private Type type;
    private Object content;

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    enum Type{
        ORDER,PAYMENT,SHORT_MESSAGE
    }

    @Override
    public String toString() {
        return "CustomMessage{" +
                "type=" + type +
                ", content=" + content +
                '}';
    }
}
